package bpmn.structure;

import java.util.ArrayList;

// TODO: Collapse with ExclusiveGateway
public class ParallelGateway extends ProcessElem
{

    {
        type = BPMNElemType.ParallelGateway;
    }

    public ParallelGateway(String id)
    {
        super(id);
    }

    public void addRef(String ref, boolean isIncoming)
    {
        if (isIncoming)
            incomingRefs.add(ref);
        else
            outgoingRefs.add(ref);
    }

    @Deprecated
    public void addIncomingRef(String ref)
    {
        incomingRefs.add(ref);
    }

    @Deprecated
    public void addOutgoingRef(String ref)
    {
        outgoingRefs.add(ref);
    }

//    @Override
//    public BPMNElement getParseElement()
//    {
//        return null;
//    }
}